<?php

namespace IDock\Insurance\DBIC\Request;

use IDock\Insurance\DBIC\Response\RSAPublicKeyResponse;
use IDock\Visitor\VehicleModelVisitor;

class RSAPublicKeyRequest extends AllDBICRequest
{
    protected $route = 'dbic/ucs/rsa/pubKey';

    protected $response = RSAPublicKeyResponse::class;

    protected $urlTip = '获取RSA公钥';

    protected $userCode = '';

    /**
     * @var  VehicleModelVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        return [
            'userCode' => $this->userCode
        ];
    }

    public function setUserCode(string $userCode): void
    {
        $this->userCode = $userCode;
    }
}